<?php
require_once("../resources/commons.php");

/**
 * Check if the user is allowed to connect (= if he/she is finance admin)
 */
function checkFinanceAdminRights(){
    if(SessionManager::getInstance()->checkSession()){
    	if(!SessionManager::getInstance()->isFinanceAdmin()){
    		displayError("Protected area");
    	}
    }
}
?>